export default [
  {
    path: '/alarm',
    name: 'alarm',
    redirect: '/alarm/record-list',
    component: resolve => require(['../../views/alarm/index.vue'], resolve),
    children: [
      {
        path: 'alarm-chart',
        name: 'alarm-chart',
        component: resolve => require(['../../views/alarm/src/alarm-chart.vue'], resolve)
      },
      {
        path: 'alarm-index',
        name: 'alarm-index',
        component: resolve => require(['../../views/alarm/src/index-management.vue'], resolve)
      },
      {
        path: 'create-index',
        name: 'create-index',
        component: resolve => require(['../../views/alarm/src/index-create.vue'], resolve)
      },
      {
        path: 'edit-index',
        name: 'edit-index',
        component: resolve => require(['../../views/alarm/src/index-edit.vue'], resolve)
      },
      {
        path: 'record-list',
        name: 'record-list',
        component: resolve => require(['../../views/alarm/src/record.vue'], resolve)
      },
      {
        path: 'template',
        name: 'template',
        component: resolve => require(['../../views/alarm/src/template.vue'], resolve)
      },
      {
        path: '/alarm-create',
        name: 'alarm-create',
        component: resolve => require(['../../views/alarm/src/create.vue'], resolve),
        redirect: '/alarm-create/instance',
        children: [
          {
            path: 'instance',
            name: 'alarm-instance-tree',
            component: resolve => require(['../../views/alarm/src/instance-tree.vue'], resolve),
            children: [
              {
                path: ':id',
                name: 'instance-strategy-more',
                component: resolve => require(['../../views/strategy/src/edit.vue'], resolve)
              }
            ]
          },
          {
            path: 'create',
            name: 'alarm-strategy',
            component: resolve => require(['../../views/alarm/src/strategy.vue'], resolve),
            children: [
              {
                path: 'get/:id',
                name: 'strategy-list-more',
                component: resolve => require(['../../views/strategy/src/edit2.vue'], resolve)
              },
              {
                path: 'instance-strategy',
                name: 'instance-new-strategy',
                component: resolve => require(['../../views/strategy/src/create.vue'], resolve)
              }
            ]
          },
          {
            path: 'check-instance',
            name: 'alarm-check-instance-tree',
            component: resolve => require(['../../views/strategy/src/monitor.vue'], resolve),
            children: [
              {
                path: 'get/:id',
                name: 'check-instance-strategy-more',
                component: resolve => require(['../../views/strategy/src/edit.vue'], resolve)
              },
              {
                path: 'instance-strategy',
                name: 'check-instance-new-strategy',
                component: resolve => require(['../../views/strategy/src/create.vue'], resolve)
              }
            ]
          },
          {
            path: 'templates',
            name: 'create-template',
            component: resolve => require(['../../views/alarm/src/template.vue'], resolve)
          }
        ]
      },
      {
        path: 'alarm-monitor',
        name: 'alarm-monitor',
        component: resolve => require(['../../views/strategy/src/monitor.vue'], resolve),
        children: [
            {
              path: ':id',
              name: 'alarm-monitor-tag',
              component: resolve => require(['../../views/strategy/src/edit.vue'], resolve)
            }
          ]
      },
      {
        path: 'alarm-config',
        name: 'alarm-config',
        component: resolve => require(['../../views/alarm/src/config.vue'], resolve)
      },
      {
        path: 'sendlist',
        name: 'sendlist',
        component: resolve => require(['../../views/alarm/src/sendlist.vue'],resolve)
        // children: [
        //     {
        //       path: 'newbuild',
        //       name: 'sendlist-newbuild',
        //       component: resolve => require(['../../views/alarm/src/newbuild.vue'], resolve)
        //     }
        //   ]
      },
      {
        path: 'newbuild',
        name: 'sendlist-newbuild',
        component: resolve => require(['../../views/alarm/src/newbuild.vue'], resolve)
      },
      {
        path: 'editbuild',
        name: 'sendlist-editbuild',
        component: resolve => require(['../../views/alarm/src/editbuild.vue'], resolve)
      },
      {
        path: 'configAlarmEdit',
        name: 'alarmEdit',
        component: resolve => require(['../../views/alarm/src/config-alarmEdit.vue'], resolve)
      }
    ]
  },
]